#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
# @FileName  :route_general_pages.py
# @Time      :2022/4/22 3:40 PM
# @Author    :Toliong toliong@foxmail.com
"""
from fastapi import APIRouter
from fastapi import Request
from fastapi.responses import HTMLResponse
from fastapi.templating import Jinja2Templates


templates = Jinja2Templates(directory="templates")


general_pages_router = APIRouter()


@general_pages_router.get("/")
async def home(req: Request):
    return templates.TemplateResponse("general_pages/homepage.html", context={"request": req})


if __name__ == "__main__":
    pass
